package example.json.msg.conts;

import java.security.MessageDigest;

public class MsgConsts {

    public static final String DEFAULT_FORMAT = "yyyyMMddHHmm";
    public static final Long MAX_PHONE_NUM = 19999999999L;
    public static final String ONLINE_MSGID = "msgid";

    /*public static void main(String[] args) throws Exception{
        String result = "";
        String str = "050244";

        MessageDigest md5 = MessageDigest.getInstance("MD5");
        md5.update((str).getBytes("UTF-8"));
        byte b[] = md5.digest();

        int i;
        StringBuffer buf = new StringBuffer("");

        for(int offset=0; offset<b.length; offset++){
            i = b[offset];
            if(i<0){
                i+=256;
            }
            if(i<16){
                buf.append("0");
            }
            buf.append(Integer.toHexString(i));
        }

        result = buf.toString();
        System.out.println("result = " + result);
    }*/

}
